@extends('business.layout')
@section('content')
  <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
               商家管理
                <small>列表</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
                <li><a href="#">商家管理</a></li>
                <li class="active">列表</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">商家信息</h3>
                        </div><!-- /.box-header -->
                        <div class="box-body">
                            <script type="text/javascript">
                                window.onload = function()
                                {
                                   $("#showHidden").hide(3000);
                                }
                            </script>
                          
                            <table id="example2" class="table table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>商家名称</th>
                                        <th>图片</th> 
                                        <th>地址</th> 
                                        <th>手机</th>
                                    </tr>
                                    
                                </thead>
                                <tbody>
                                   
                                    <tr>
                                       
                                        <td name="username">{{$data -> username}}
                                        </td>
                                        <td><img width="80px"src="{{$data -> img}}"/></td>
                                        <th>{{$data -> business_address}}</th> 
                                        <td>{{$data -> phone}}</td>
                                    </tr>
                                    <thead>
                                    <tr>   
                                        <th>邮箱</th>
                                        <th>状态</th>
                                        <th>描述</th>
                                        <th>评价(星)</th>
                                        
                                    </tr>
                                    <tr>   
                                        <td>{{$data -> email}}</td>
                                        <td class="lang">
                                            @if($data -> status == '0')
                                                营业
                                            @else
                                                休息
                                            @endif
                                        </td>
                                        <th >{!!$data -> des!!}</th>
                                        <th >{{$data -> star}}</th>
                                        <td ><a href="{{url('/business/user/edit')}}">编辑</a> 
                                    </tr>
                                    </thead>
                                </tbody>
                            </table>
                            
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->

                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
    <!-- page script -->

  
@endsection